﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EBD RID: 3773
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonVirtualItemInfo : IMessage<RogueCommonVirtualItemInfo>, IMessage, IEquatable<RogueCommonVirtualItemInfo>, IDeepCloneable<RogueCommonVirtualItemInfo>, IBufferMessage
	{
		// Token: 0x17002FD2 RID: 12242
		// (get) Token: 0x0600A905 RID: 43269 RVA: 0x001C8271 File Offset: 0x001C6471
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonVirtualItemInfo> Parser
		{
			get
			{
				return RogueCommonVirtualItemInfo._parser;
			}
		}

		// Token: 0x17002FD3 RID: 12243
		// (get) Token: 0x0600A906 RID: 43270 RVA: 0x001C8278 File Offset: 0x001C6478
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonVirtualItemInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002FD4 RID: 12244
		// (get) Token: 0x0600A907 RID: 43271 RVA: 0x001C828A File Offset: 0x001C648A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonVirtualItemInfo.Descriptor;
			}
		}

		// Token: 0x0600A908 RID: 43272 RVA: 0x001C8291 File Offset: 0x001C6491
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonVirtualItemInfo()
		{
		}

		// Token: 0x0600A909 RID: 43273 RVA: 0x001C8299 File Offset: 0x001C6499
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonVirtualItemInfo(RogueCommonVirtualItemInfo other) : this()
		{
			this.virtualItemId_ = other.virtualItemId_;
			this.virtualItemNum_ = other.virtualItemNum_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A90A RID: 43274 RVA: 0x001C82CA File Offset: 0x001C64CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonVirtualItemInfo Clone()
		{
			return new RogueCommonVirtualItemInfo(this);
		}

		// Token: 0x17002FD5 RID: 12245
		// (get) Token: 0x0600A90B RID: 43275 RVA: 0x001C82D2 File Offset: 0x001C64D2
		// (set) Token: 0x0600A90C RID: 43276 RVA: 0x001C82DA File Offset: 0x001C64DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint VirtualItemId
		{
			get
			{
				return this.virtualItemId_;
			}
			set
			{
				this.virtualItemId_ = value;
			}
		}

		// Token: 0x17002FD6 RID: 12246
		// (get) Token: 0x0600A90D RID: 43277 RVA: 0x001C82E3 File Offset: 0x001C64E3
		// (set) Token: 0x0600A90E RID: 43278 RVA: 0x001C82EB File Offset: 0x001C64EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint VirtualItemNum
		{
			get
			{
				return this.virtualItemNum_;
			}
			set
			{
				this.virtualItemNum_ = value;
			}
		}

		// Token: 0x0600A90F RID: 43279 RVA: 0x001C82F4 File Offset: 0x001C64F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonVirtualItemInfo);
		}

		// Token: 0x0600A910 RID: 43280 RVA: 0x001C8302 File Offset: 0x001C6502
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonVirtualItemInfo other)
		{
			return other != null && (other == this || (this.VirtualItemId == other.VirtualItemId && this.VirtualItemNum == other.VirtualItemNum && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A911 RID: 43281 RVA: 0x001C8340 File Offset: 0x001C6540
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.VirtualItemId != 0U)
			{
				num ^= this.VirtualItemId.GetHashCode();
			}
			if (this.VirtualItemNum != 0U)
			{
				num ^= this.VirtualItemNum.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A912 RID: 43282 RVA: 0x001C8398 File Offset: 0x001C6598
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A913 RID: 43283 RVA: 0x001C83A0 File Offset: 0x001C65A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A914 RID: 43284 RVA: 0x001C83AC File Offset: 0x001C65AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.VirtualItemId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.VirtualItemId);
			}
			if (this.VirtualItemNum != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.VirtualItemNum);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A915 RID: 43285 RVA: 0x001C8408 File Offset: 0x001C6608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.VirtualItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.VirtualItemId);
			}
			if (this.VirtualItemNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.VirtualItemNum);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A916 RID: 43286 RVA: 0x001C8460 File Offset: 0x001C6660
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonVirtualItemInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.VirtualItemId != 0U)
			{
				this.VirtualItemId = other.VirtualItemId;
			}
			if (other.VirtualItemNum != 0U)
			{
				this.VirtualItemNum = other.VirtualItemNum;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A917 RID: 43287 RVA: 0x001C84B0 File Offset: 0x001C66B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A918 RID: 43288 RVA: 0x001C84BC File Offset: 0x001C66BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.VirtualItemNum = input.ReadUInt32();
					}
				}
				else
				{
					this.VirtualItemId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004491 RID: 17553
		private static readonly MessageParser<RogueCommonVirtualItemInfo> _parser = new MessageParser<RogueCommonVirtualItemInfo>(() => new RogueCommonVirtualItemInfo());

		// Token: 0x04004492 RID: 17554
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004493 RID: 17555
		public const int VirtualItemIdFieldNumber = 2;

		// Token: 0x04004494 RID: 17556
		private uint virtualItemId_;

		// Token: 0x04004495 RID: 17557
		public const int VirtualItemNumFieldNumber = 9;

		// Token: 0x04004496 RID: 17558
		private uint virtualItemNum_;
	}
}
